import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/detectrecord/` + url, ...arg)

/**
 * 检测记录Api接口管理器
 *
 * @author zyb
 * @date  2023/11/25 18:45
 **/
export default {
	// 获取检测记录分页
	bizDetectRecordPage(data) {
		return request('page', data, 'get')
	},
	// 提交检测记录表单 edit为true时为编辑，默认为新增
	bizDetectRecordSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除检测记录
	bizDetectRecordDelete(data) {
		return request('delete', data)
	},
	// 获取检测记录详情
	bizDetectRecordDetail(data) {
		return request('detail', data, 'get')
	},
	addDetectRecord(data){
		return request('add',data,'post')
	},
	//处理异常记录
	handlingExceptionRecord(data){
		return request('handleExceptionRecord',data,'post')
	}
}
